<h1><?php echo $this->pageTitle = __('Add/Edit Campaign', true); ?></h1>
<div class="form">
	<?php echo $form->create('Campaign');?>
	<fieldset>
		<?php
			echo $form->input('id');
			echo $form->input('title', array('label'=>__('Title', true).':', 'error' => __('Title is required.', true)));
			echo $form->input('priority', array('label'=>__('Priority', true).':', 'type'=>'select', 
				'options'=>array(1=>__('low', true), 2=>__('medium', true), 3=>__('high', true)), 'error' => __('Priority must be numeric 1-3.', true)));
			echo $form->input('active', array('label'=>__('Active', true)));
		?>
	</fieldset>
	<fieldset>
		<legend><?php __('Limits');?></legend>
		<?php
			echo $form->input('limit_views', array('label'=>__('Display cnt.', true).':', 'error' => __('Display count limit must be a number.', true)));
			echo $form->input('limit_clicks', array('label'=>__('Click count', true).':', 'error' => __('Click count limit must be a number.', true)));
			echo $form->input('limit_start', array('label'=>__('Start date', true).':', 'error' => __('Start date limit must be a date.', true)));
			echo $form->input('limit_end', array('label'=>__('End date', true).':', 'error' => __('End date limit must be a date.', true)));
		?>
	</fieldset>
	<?php echo $form->end('OK');?>
</div>